export default {
	setBadge(count) {
		if (count>0) {
			uni.setTabBarBadge({
				index: 2,
				text: count.toString()
			})
		} else {
			uni.removeTabBarBadge({
				index: 2
			})
		}
	}
}